'use strict';

//Setting up route
angular.module('sessions').config(['$stateProvider',
	function($stateProvider) {
		// Sessions state routing
		$stateProvider.

			state('sessions', {
				url: '/sessions',
				templateUrl: 'modules/sessions/views/sessions.client.view.html',
        authenticate:true
			}).
			state('createSession', {
				url: '/sessions/create',
				templateUrl: 'modules/sessions/views/create-session.client.view.html',
        authenticate:true
			}).
			state('viewSession', {
				url: '/sessions/:sessionId',
				templateUrl: 'modules/sessions/views/view-session.client.view.html',
        authenticate:true
			});
	}
]);
